package com.hkpw.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hkpw.common.annotation.Excel;
import com.hkpw.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 人员信息同步对象 t_person_sync
 * 
 * @author andy
 * @date 2022-10-06
 */
public class PersonSync extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 人员临时标志 */
    @Excel(name = "人员临时标志")
    private Long clientId;

    /** 海康唯一标志 */
    @Excel(name = "海康唯一标志")
    private String personId;

    /** 人员名称 */
    @Excel(name = "人员名称")
    private String personName;

    /** 所属组织标识 */
    @Excel(name = "所属组织标识")
    private String orgIndexCode;

    /** 性别，1：男；2：女；0：未知 */
    @Excel(name = "性别，1：男；2：女；0：未知")
    private String gender;

    /** 出生日期 */
    @Excel(name = "出生日期")
    private String birthday;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phoneNo;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 证件类型：海康字典 */
    @Excel(name = "证件类型：海康字典")
    private String certificateType;

    /** 证件号码 */
    @Excel(name = "证件号码")
    private String certificateNo;

    /** 工号 */
    @Excel(name = "工号")
    private String jobNo;

    /** 同步类型：0:新增，1:更新 */
    @Excel(name = "同步类型：0:新增，1:更新")
    private String syncType;

    /** 同步状态,0:未知,1:成功,2:失败 */
    @Excel(name = "同步状态,0:未知,1:成功,2:失败")
    private String syncStatu;

    /** 同步时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "同步时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date syncTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setPersonId(String personId) 
    {
        this.personId = personId;
    }

    public String getPersonId() 
    {
        return personId;
    }
    public void setPersonName(String personName) 
    {
        this.personName = personName;
    }

    public String getPersonName() 
    {
        return personName;
    }
    public void setOrgIndexCode(String orgIndexCode) 
    {
        this.orgIndexCode = orgIndexCode;
    }

    public String getOrgIndexCode() 
    {
        return orgIndexCode;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setBirthday(String birthday) 
    {
        this.birthday = birthday;
    }

    public String getBirthday() 
    {
        return birthday;
    }
    public void setPhoneNo(String phoneNo) 
    {
        this.phoneNo = phoneNo;
    }

    public String getPhoneNo() 
    {
        return phoneNo;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setCertificateType(String certificateType) 
    {
        this.certificateType = certificateType;
    }

    public String getCertificateType() 
    {
        return certificateType;
    }
    public void setCertificateNo(String certificateNo) 
    {
        this.certificateNo = certificateNo;
    }

    public String getCertificateNo() 
    {
        return certificateNo;
    }
    public void setJobNo(String jobNo) 
    {
        this.jobNo = jobNo;
    }

    public String getJobNo() 
    {
        return jobNo;
    }
    public void setSyncType(String syncType) 
    {
        this.syncType = syncType;
    }

    public String getSyncType() 
    {
        return syncType;
    }
    public void setSyncStatu(String syncStatu) 
    {
        this.syncStatu = syncStatu;
    }

    public String getSyncStatu() 
    {
        return syncStatu;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clientId", getClientId())
            .append("personId", getPersonId())
            .append("personName", getPersonName())
            .append("orgIndexCode", getOrgIndexCode())
            .append("gender", getGender())
            .append("birthday", getBirthday())
            .append("phoneNo", getPhoneNo())
            .append("email", getEmail())
            .append("certificateType", getCertificateType())
            .append("certificateNo", getCertificateNo())
            .append("jobNo", getJobNo())
            .append("syncType", getSyncType())
            .append("syncStatu", getSyncStatu())
            .append("syncTime", getSyncTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
